package com.example.springconfigclient;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @描述:
 * @创建人: alf
 * @创建时间: 2018-04-26 16:27
 */
@Controller
public class TestController {
    @Value("${content}")
    private String content;
    @RequestMapping("/")
    @ResponseBody
    public  String test(){
        return  content;
    }

}
